﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SearchProvider.aspx.cs" Inherits="WXYW.SearchProvider" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    查询代理商资料
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
    关键字<asp:TextBox ID="keyWordTextBox" runat="server" Height="16px" onkeypress="enterTxtBox('searchLinkButton')"></asp:TextBox>
    <asp:LinkButton ID="searchLinkButton" runat="server" OnClick="searchLinkButton_Click">查询</asp:LinkButton>
    <asp:LinkButton ID="resetLinkButton" runat="server" OnClick="resetLinkButton_Click">清除</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
   <asp:GridView ID="ProviderGridView" runat="server" AutoGenerateColumns="False" CssClass="tableList"
        Width="100%" AllowPaging="True" PageSize="20" 
        onpageindexchanging="ProviderGridView_PageIndexChanging">
        <Columns>
            <asp:BoundField HeaderText="代码" DataField="ProviderCode" SortExpression="ProviderCode">
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField HeaderText="名称" DataField="ProviderName">
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="产品类型">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ProductClass.Name") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ProductClass.Name") %>'></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="接口人1" DataField="Contact1Name">
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField HeaderText="联系手机" DataField="Contact1MobilePhone">
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField HeaderText="邮箱" DataField="Contact1Email" SortExpression="Contact1Email">
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField HeaderText="通讯地址" DataField="Address">
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" HorizontalAlign="Left" />
            </asp:BoundField>
            <%--<asp:TemplateField HeaderText="操作" ShowHeader="False">
                <ItemTemplate>
                    <img src="image/operateicon/docview.gif" alt="" />
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Detail"
                        Text="查看" CommandArgument='<%#Eval("ProviderID") %>'></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
            </asp:TemplateField>--%>
        </Columns>
    </asp:GridView>
</asp:Content>
